#!/usr/bin/env python3
# -*- coding: utf-8 -*-


from dragon.locatordetail import LocatorDetail

class MainForcePage:
    searchInput=LocatorDetail('input.searchInput','搜索框')
    stockBlock=LocatorDetail('li.infinite-list-item','股票展示块')
    stockName=LocatorDetail('li.infinite-list-item>div>div:nth-child(1)>span','股票名称')
    stockCode=LocatorDetail('li.infinite-list-item>div>div:nth-child(2)>span','股票代码')
    noDataAlert=LocatorDetail('div.empty-text','空数据提示')
    # startDateButton=LocatorDetail('div.df.time-text','开始日期按钮')
    startDateButton=LocatorDetail('/html/body/div[2]/div[1]/div[1]/div[2]/div[1]/div/div[2]/div/div/div','开始日期按钮','xpath')
    endDateButton=LocatorDetail('/html/body/div[2]/div[1]/div[1]/div[2]/div[2]/div/div[2]/div/div/div','结束日期按钮','xpath')
    changeSortButton=LocatorDetail('次数','异动次数排序按钮','text')
    changeCount=LocatorDetail('div.item-count','异动次数')
    changeSortIcon=LocatorDetail('use','排序图标')